package cn.bb.bbstudy.service;

import cn.bb.bbstudy.pojo.Blog;
import com.github.pagehelper.Page;

public interface BlogService{


    int deleteByPrimaryKey(Integer id);

    int insert(Blog record);

    int insertSelective(Blog record);

    Blog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Blog record);

    int updateByPrimaryKey(Blog record);

    int count(String uid);

    Page<Blog> findAllByUIdDesc(String uid);

    Page<Blog> findAllDesc();

    //根据博客id 查询博客
    Blog findOneByBid(String bid);

    Page<Blog> findAllByCIdDesc(int cid);
}
